/*********************************************************************************
* Sharing Facebook Twister
**********************************************************************************/
function share_facebook() {
    var name = $("#gname").val();
    var id = $("#gid").val();
    var u = "http://localhost/Offer/OfferDetail?offerID=" + id;
    var t1 = name;
    window.open("http://www.facebook.com/share.php?u=" + encodeURIComponent(u) + "&t=" + encodeURIComponent(t1));
}

function share_twitter() {
   // var name = $("#gname").val();
    var id = $("#gid").val();
    var uvnn = "http://localhost/Offer/OfferDetail?offerID=" + id;
    //var tvnn = name;
    window.open("http://twitter.com/home?status=" + encodeURIComponent(uvnn));
}
/*
 * Sharing button
 */
$(document).ready(function(){ 
		
 $("img.btShareFacebook").click(function () {
     //var id = $(this).attr("id");
     share_facebook();
 });
 
 $("img.btShareTwister").click(function () {
     //var id = $(this).attr("id");
     share_twitter();
 });
 
});